﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PersistanceLayer
{
    public interface IChatBoxDataRepository
    {
        // Get all users
        // IsOnline property van een user aanpassen

        List<IChatBoxUserData> GetAllUsersOnline();

        void ChangeIsOnlinePropertyWhenAppropriate(int thresholdInSeconds);
        IChatBoxUserData AddUserWhenNameIsNew(string name, double lat, double lon, string iconUrl);
        IChatBoxUserData AddUserWhenNameIsNew(string name, double lat, double lon, string iconUrl, string nickName);
        void ClearUsers();
        void UpdateLastSeen(int id);
        void LoginRegisteredUser(int id);
        IList<IChatBoxMessageData> GetLastMessages(int id);
        bool SendMessage(int id, string message);
         

    }
}
